<template>
  <div class="person">
    <h2>姓名: {{person.name}}</h2>
  </div>
</template>

<script setup lang="ts" name="Person">
import {type PersonInter, type Persons} from "@/types";

let person:PersonInter = {id:1, name:"张三", age:23}


let personList: Array<PersonInter> = [
  {id:1, name:"张三1", age:23},
  {id:2, name:"张三2", age:23},
  {id:3, name:"张三3", age:23},
]

let personList2: Persons = [
  {id:1, name:"张三1", age:23},
  {id:2, name:"张三2", age:23},
  {id:3, name:"张三3", age:23},
]

</script>


<style scoped>
.person {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}

button {
  margin: 0 5px;
}
</style>